<?php

namespace App\Models\System;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * 菜单分组数据模型
 * @package App\Models
 */
class MenuGroup extends Model
{
    use SoftDeletes;
    protected $table = 'sys_menu_groups';
    //主键
    protected $primaryKey = 'group_id';
    protected $dateFormat = 'Y-m-d H:i:s';
    /**
     * Prepare a date for array / JSON serialization.
     *
     * @param  \DateTimeInterface  $date
     * @return string
     */
    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
